#include pwd.h>
void endpwent(); Close password file.
struct passwd &sstarf#star;getpwent(); Return an entry from the password file.
struct passwd &sstarf#star;getpwuid(int uid); Return the entry from the password file for uid.
struct passwd &sstarf#star;getpwnam(const char &sstarf#star;user); Return the entry from the password file for user.
void setpwent(); Open password file for further operations.
void setpwfile(char &sstarf#star;fname); Use the fname instead of /etc/passwd as password file.
#include grp.h>
void endgrent(); Close group file.
struct group &sstarf#star;getgrent() Return an entry from the group file.
struct group &sstarf#star;getgrgid(int gid); Return the entry from the group file for gid. (Mostly fake, returning root or user as groupnames)
struct group &sstarf#star;getgrnam(char &sstarf#star;gname); Return the entry from the group file for gname. (Mostly fake, returning root or user as groupnames)